home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / g / gnu_c / pmlsrc23.zoo / envtests / makefile.pml < prev    next >
Encoding:
Makefile  |  1994-03-19  |  1.0 KB  |  47 lines

  1. #  USAGE
  2. #    make m=value s=true 
  3. #        where m=value is either
  4. #            m=m68020 (implies 68881 support)
  5. #            to support systems with an 68020/68030+68881/68882
  6. #        or
  7. #            m=sfp004
  8. #            to support 68000 based systems with a memory mapped
  9. #            68881
  10. #
  11. #        default (m omitted)
  12. #            for systems without coprocessor, 32 bit
  13. #
  14. #        s=true
  15. #            sets -mshort (16 bit int)
  16. #
  17. .SUFFIXES:
  18. .SUFFIXES: .c .o
  19.  
  20. #CC = c:\gcc.140\exec\cc.ttp
  21. #LD = c:\gcc.140\exec\ld.ttp -M c:\gcc.140\lib\crt0.o 
  22.  
  23. CFLAGS  := -c -O
  24. #OUTLIB := -lpml.olb -lgnu.olb -nostdlib
  25. OUTLIB := -lgnu.olb #-nostdlib
  26.  
  27. ifneq (,$(findstring true,$(s)))
  28.  CFLAGS    := $(CFLAGS) $(addprefix  ,-mshort)
  29.  OUTLIB    := $(subst .olb,16.olb, $(OUTLIB))
  30. endif
  31.  
  32. ifneq (,$(findstring 881,$(m)))
  33.  CFLAGS    := $(CFLAGS) $(addprefix  ,-m68020 -m68881)
  34.  OUTLIB    := $(subst .olb,020.olb, $(OUTLIB))
  35. endif
  36.  
  37. ifneq (,$(findstring sfp004,$(m)))
  38.  CFLAGS    := $(CFLAGS) $(addprefix  ,-Dsfp004)
  39.  OUTLIB    := $(subst .olb,sfp.olb, $(OUTLIB))
  40. endif
  41.  
  42. all : testfrexp.ttp testldexp.ttp  testmodf.ttp
  43.  
  44. %.ttp : %.o
  45.     $(LD) $< $(OUTLIB) -o $@
  46. #    toglclr  $@
  47.